package com.xhq.wms.dao.system.impl;


import com.xhq.commons.dao.impl.BaseDaoImpl;
import com.xhq.commons.dto.Pageable;
import com.xhq.commons.util.JdbcUtils;

import com.xhq.wms.dao.system.UserDao;

import com.xhq.wms.entity.system.User;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.ColumnListHandler;

import java.sql.SQLException;
import java.util.List;


public class UserDaoImpl extends BaseDaoImpl<User> implements UserDao {

    @Override
    public User findForLogin(String userName, String password) {
        String sql=" select id, name userName,password from user where name =? and password=? ";
        User user = super.queryOne(sql, userName, password);
        return user;
    }

}
